home *** CD-ROM | disk | FTP | other *** search
/ Alde ADA 1: #1 / CCCC 8804 Volume 1 Number 1 - Alde.iso / C / MISC / FUNC / PROFF.ARC / LOOKUP.H < prev    next >
Encoding:
C/C++ Source or Header  |  1988-02-21  |  637 b   |  27 lines

  1. /*
  2.  * from K&R "The C Programming language"
  3.  * Table lookup routines 
  4.  * structure and definitions
  5.  *
  6.  */
  7.  
  8.  /* basic table entry */
  9. struct hashlist {
  10.    char *name;
  11.    char *def;
  12.    struct hashlist *next;              /* next in chain     */
  13. };
  14.  
  15.  /* basic table entry */
  16. struct lexlist    {
  17.    char *name;
  18.    int val;                            /* lexical value     */
  19.    int flag;                           /* optional flag val */
  20.    struct lexlist *link;               /* next in chain     */
  21. };
  22.  
  23.  
  24. #define HASHMAX 100
  25.  
  26. struct lexlist (*(*lextable))[];       /* global pointer for lexical analyser hash table */
  27.